<%-- 
    Document   : panggilSoal
    Created on : 28 Nov 12, 19:19:19
    Author     : user
--%>
<%
            model.DataBaseConnection conn = new  model.DataBaseConnection();
%>



<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
    </head>
    <body>
        
         <%
                    try {
            String query="select * from tablesoal";
            java.sql.Statement statement = conn.getConnection().createStatement();
            java.sql.ResultSet result = statement.executeQuery(query);

            while (result.next()){
               out.println(" " + result.getString("no")+"<br>");
               out.println("" + result.getString("soal")+"<br>");
               out.println("" + result.getString("pilihanA")+"<br>");
               out.println("" + result.getString("pilihanB")+"<br>");
               out.println(""+ result.getString("pilihanC")+"<br>");
               out.println(""+ result.getString("pilihanD")+"<br>");
               
            }
                        statement.close();
                    } catch (Exception ex) {
                        out.println("message: " + ex.getMessage());
                    }
        %>
            
    </body>
</html>
